import {useApprovalDesignerStore} from "@/store/modules/dsgn/ApprovalDesigner";

/** FormCreate表单规则基础类型 */
export interface FcRuleBase {
  id: string|number
  field: string
  title: string
  type: string,
  origin:any,
}

export const getFormCreateRules = () => {
  const { designerModelForm } = useApprovalDesignerStore()
  if (designerModelForm) {
    if (designerModelForm.configJson) {
      return designerModelForm.configJson.widgetList
    }
  }
  return [];
}
